package com.woniuxy.sender;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/6 0006-下午 2:32
 */
@Component
public class LengthSender {
    @Autowired
    RabbitTemplate rabbitTemplate;
    public void exchange(int num){
        rabbitTemplate.convertAndSend("rpc_exchange_a","",num);
    }
}
